package com.example.myapplication.apiService;

import com.example.myapplication.bean.ArticleBeen;
import com.example.myapplication.bean.AttractionsBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface api {
    @GET("sight/ctrip")
    Observable<AttractionsBean> getAttractionList(@Query("cityid") String id, @Query("sort") String sort, @Query("pageToken") String pageToken, @Query("apikey") String apikey);

    @GET("post/ctrip")
    Observable<ArticleBeen> getArticle(@Query("cityid") String id, @Query("sort") String sort, @Query("pageToken") String pageToken, @Query("apikey") String apikey);
}
